import request from "@/request/index.js";
//获取所有租约
 
 
 
export function getLease(leaseState = "", sortColumn = "",serchValue="", sortOrder = "desc", ) { //租约状态      //排序列名        //排序方式
	return request(
		`/front/landlord/lease/list?leaseState=${leaseState}&sortColumn=${sortColumn}&sortOrder=${sortOrder}&serchValue=${serchValue}`,
 
		'get', null)
}
//租约详情
export function getLeaseDetail(id) {
	return request('/front/landlord/lease/' + id, 'get', null)
}

// 创建租约成功后会返回租约信息，只需要租约id，其他无需在意

export function addLease(data){
	return request(`/front/landlord/lease`,'post',data)
}

// export function 
 